﻿KISSY.add("fgt/sns/qq", function (S) {
    function QQ(config) {
        this._init(config || {});
    }

    S.augment(QQ, {
        _init: function (config) {
            var self = this;

            self.cnName = "腾讯微博";
            self.spanClass = "qq";
            self.aClass = "qqaclass";
        },

        generateLink: function (snsModel) {
            var self = this,
                encode = encodeURIComponent;

            self.link = [
                            'http://v.t.qq.com/share/share.php?source=100623044&url=',
                            encode(snsModel.link),
                            '&title=',
                            encode(snsModel.title),
                            '&site=',
                            encode('http://www.dahuoshuo.com'),
                            '&pic=',
                            encode(snsModel.pic)
                        ].join('');

            return self.link;
        }
    });

    return QQ;
});